#include <Format.h>
#include <sstream>
#include <ostream>
#include <Length.h>
using namespace std;

Format::Format(const Length & len, Output* pOutput):output_m(*pOutput), len_m(len)
{
   len.format(output_m);
}


std::ostream& operator << (std::ostream& os, const Format & format)
{  
   ostringstream ostrs;
   format.output_m.format(ostrs);
   os << ostrs.str();
   return os; 
}




